#include "MushroomRed.h"
#include "ResourceManager.h"
#include <d3dx9.h>

MushroomRed::MushroomRed(int id,float x, float y, int type, int state)
{
	_sprite = new Sprite(_spriteHandler, ResourceManager::GetInstance()->GetTexture(ResourceManager::GetInstance()->TextureName.MushroomRed),0, 0);
	_id = id;
	_x = x;
	_y = y;
	_type = type;
	_width = _sprite->getTexture()->getWidth();
	_height = _sprite->getTexture()->getHeight();
	_state = state;
}

MushroomRed::~MushroomRed(void)
{
	if (_sprite)
	{
		delete _sprite;
	}
	
}

void MushroomRed::Update(list<Object *> *_list, float time)
{
}


void MushroomRed:: Render(int vpX, int vpY)
{
	_sprite->Render(_x, _y, vpX, vpY);
}

OBJECT_TYPE MushroomRed::getObjectType()
{
	return OBJECT_ITEM;
}